package com.xudow.app.newui.zutils;

import android.app.ProgressDialog;
import android.content.Context;
import android.view.View;

/**
 * 作者：LownChen on 2016/10/13 14:28
 */
public class LsUtils {


    static ProgressDialog pbarDialog;


    public static void pdShou(Context context,String message){
        pbarDialog = new ProgressDialog(context);
        pbarDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        pbarDialog.setMessage(message);
        pbarDialog.setCancelable(true);
        pbarDialog.show();

    }

    public static void pdDismiss(){
        if(pbarDialog!=null){
            pbarDialog.dismiss();
            pbarDialog=null;
        }

    }








}
